﻿namespace Modbus
{
	internal static class SR
	{
		#region ( Argument Names )

		internal const string Argument_slaveAddress = "slaveAddress";

		internal const string Argument_startingAddress = "startingAddress";
		internal const string Argument_readStartingAddress = "readStartingAddress";
		internal const string Argument_writeStartingAddress = "writeStartingAddress";

		internal const string Argument_registerAddress = "registerAddress";
		internal const string Argument_outputAddress = "outputAddress";
		internal const string Argument_pointerAddress = "pointerAddress";

		internal const string Argument_quantity = "quantity";
		internal const string Argument_readQuantity = "readQuantity";
		internal const string Argument_writeQuantity = "writeQuantity";
		
		internal const string Argument_outputs = "outputs";
		internal const string Argument_registers = "registers";
		internal const string Argument_writeRegisters = "writeRegisters";

		#endregion

		#region ( Modbus Message Field Names )

		internal const string ModbusMessageField_FunctionCode = "Function Code";
		internal const string ModbusMessageField_StartingAddress = "Starting Address";
		internal const string ModbusMessageField_Quantity = "Quantity";
		internal const string ModbusMessageField_ByteCount = "Byte Count";
		internal const string ModbusMessageField_OutputAddress = "Output Address";
		internal const string ModbusMessageField_OutputValue = "Output Value";
		internal const string ModbusMessageField_RegisterAddress = "Register Address";
		internal const string ModbusMessageField_RegisterValue = "Register Value";
		internal const string ModbusMessageField_AndMask = "AND Mask";
		internal const string ModbusMessageField_OrMask = "OR Mask";

		#endregion

		#region ( Modbus Exception Strings )

		internal const string ModbusException_ErrorCode = "ErrorCode";
		internal const string MismatchResponseException_FieldName = "FieldName";
		internal const string ModbusSlaveException_FunctionCode = "FunctionCode";
		internal const string ModbusSlaveException_ExceptionCode = "ExceptionCode";

		#endregion
	}
}
